 package erp.education.web.common;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import erp.education.server.beans.implementation.ResultResponse;

 
 
public class BaseAction implements ServletRequestAware, ServletResponseAware {
private HttpServletResponse response;
private HttpServletRequest request;
private HttpSession session;
public ResultResponse result;
	@Override
	public void setServletResponse(HttpServletResponse response) {
		// TODO Auto-generated method stub
		this.response=response;
		
	}

	@Override
	public void setServletRequest(HttpServletRequest request) {
		// TODO Auto-generated method stub
		this.request=request;
		
	}

	public HttpServletResponse getResponse() {
		return this.response;
	}

	public HttpServletRequest getRequest() {
		return this.request;
	}

	public ResultResponse getResult() {
		return result;
	}

	public void setResult(ResultResponse result) {
		this.result = result;
	}

	 public HttpSession getSession(){
		 this.session=request.getSession(true);
		 return this.session;
	 }
}
